package com.qfhd.soft.cjzcore.UI.Core;

import java.text.DecimalFormat;

public class DecimalFormatHelper {

    public static String getFloat2(Float number){
        DecimalFormat df = new DecimalFormat("0.00");
        return df.format(number);
    }

    public static String getInt(Float number){
        DecimalFormat df = new DecimalFormat("0");
        return df.format(number);
    }

    public static String getInt_2(int number){
        DecimalFormat df = new DecimalFormat("00");
        return df.format(number);
    }
}
